package com.blacksee.bluetoothpoker.logic;

import java.util.Vector;

public class GameInfo {
	private Vector opponents;
	private PlayerInfo user;
	private int pot;
	private int totalMoneyOnTheTable;
	private int playerInTurn;
	private Vector cardsOnTable;
	private Vector events;
	
	public GameInfo(){
		opponents = new Vector();
		cardsOnTable = new Vector(5);
	}
	
	public void addEvent (String event)
	{
		events.addElement(event);
	}
	
	public Vector getEvents ()
	{
		return events;
	}
	
	public Vector getPlayers() {
		return opponents;
	}
	public void addPlayer(PlayerInfo player){
		opponents.addElement(player);
	}
	
	public void removePlayer(PlayerInfo player){
		opponents.removeElement(player);
	}

	public int getTotalMoneyOnTheTable() {
		return totalMoneyOnTheTable;
	}

	public int getPot() {
		return pot;
	}
	
	public void setPot(int pot) {
		this.pot = pot;
	}
	public int getPlayerInTurn() {
		return playerInTurn;
	}
	public void setPlayerInTurn(int playerInTurn) {
		this.playerInTurn = playerInTurn;
	}
	public Vector getCardsOnTable() {
		return cardsOnTable;
	}
	public void addCardsOnTable(Card card) {
		cardsOnTable.addElement(card);
	}
	
	public int getNumberOfPlayers(){
		return opponents.size();
	}

	public PlayerInfo getUser() {
		return user;
	}

	public void setUser(PlayerInfo user) {
		this.user = user;
	}
	
	
	
}
